package com.zzyl.nursing.vo;


import com.zzyl.nursing.domain.DeviceData;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author fwb
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class GetRoomsWithDeviceByFloorIdVO implements Serializable{
    //房间id
    private Long id;
    //房间的编号
    private String code;
    private List<BedVo> bedVoList;
    private List<DeviceVO> deviceVos;

    /**
     * 床位
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class BedVo implements Serializable{
        /**
         * 床位 id
         */
        private Long id;

        /**
         * 床位的编号
         */
        private String bedNumber;
        /**
         * 床位的状态
         */
        private Integer bedStatus;
        /**
         * 老人姓名
         */
        private String ename;

        private List<DeviceVO> deviceVos;
    }

    /**
     * 设备表
     */
    @Data
    public static class DeviceVO implements Serializable {
        /**
         * 设备的id
         */
        private Long id;
        private String iotId;
        private String deviceName;
        private String productName;
        private List<DeviceDataVo> deviceDataVos;
    }

    /**
     * 设备数据表
     */
    public static class DeviceDataVo extends DeviceData implements Serializable{

    }

}
